<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>放大缩小</title>

    <style>
        .box {
            margin: 100px auto;
            width: 100px;
            height: 100px;
            background-color: blue;
            transition: all 1s ease;
        }
        
        .box:hover {
            transform: scale(2);
        }
        
        .box1 {
            margin: 100px auto;
            width: 100px;
            height: 100px;
            background-color: blue;
            transition: all 1s ease;
        }
        
        .box1:hover {
            transform: scale(.5);
        }
    </style>


</head>

<body>


    <div class="box">


    </div>
    <div class="box1">


    </div>
</body>

</html>